package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author du
 * date 2018/7/29 下午8:51
 */
public class VIPResult implements Parcelable {
    /**
     * id : 4
     * name : 月会员
     * month : 1
     * unit : 1个月
     * price : 660.00
     * original_price : 660.00
     * info : <dd>观看全部课程</dd>
     */

    private String id;//vip会员 Id
    private String name;//会员名称
    private String month;//会员月份
    private String unit;//单位
    private String price;//销售价格
    private String original_price;//原价
    private String info;//会员说明（因网站显示问题，有<dd></dd>标签）

    public String getId() { return id;}

    public void setId(String id) { this.id = id;}

    public String getName() { return name;}

    public void setName(String name) { this.name = name;}

    public String getMonth() { return month;}

    public void setMonth(String month) { this.month = month;}

    public String getUnit() { return unit;}

    public void setUnit(String unit) { this.unit = unit;}

    public String getPrice() { return price;}

    public void setPrice(String price) { this.price = price;}

    public String getOriginal_price() { return original_price;}

    public void setOriginal_price(String original_price) { this.original_price = original_price;}

    public String getInfo() { return info;}

    public void setInfo(String info) { this.info = info;}

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.month);
        dest.writeString(this.unit);
        dest.writeString(this.price);
        dest.writeString(this.original_price);
        dest.writeString(this.info);
    }

    public VIPResult() {}

    protected VIPResult(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.month = in.readString();
        this.unit = in.readString();
        this.price = in.readString();
        this.original_price = in.readString();
        this.info = in.readString();
    }

    public static final Creator<VIPResult> CREATOR = new Creator<VIPResult>() {
        @Override
        public VIPResult createFromParcel(Parcel source) {return new VIPResult(source);}

        @Override
        public VIPResult[] newArray(int size) {return new VIPResult[size];}
    };
}
